package ca.skygazer.shared.telescope;

import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import ca.skygazer.shared.account.SgUser;
import ca.skygazer.shared.coords.LatLonCoord;

@SuppressWarnings("serial")
@PersistenceCapable(detachable="true")
public class Telescope implements Serializable {
	
	@SuppressWarnings("unused")
	@PrimaryKey	
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String encodedKey;

    @Persistent
	private TelescopeModel telescopeModel;
    @Persistent
	private SgUser owner;
    @Persistent
	private LatLonCoord location;
	
	public Telescope(){
	}
	
	public TelescopeModel getTelescopeModel() {
		return telescopeModel;
	}
	public void setTelescopeModel(TelescopeModel telescopeModel) {
		this.telescopeModel = telescopeModel;
	}
	public SgUser getOwner() {
		return owner;
	}
	public void setOwner(SgUser owner) {
		this.owner = owner;
	}
	public LatLonCoord getLocation() {
		return location;
	}
	public void setLocation(LatLonCoord location) {
		this.location = location;
	}
	
	
}
